Microchip Technology /ATSAMV71Q21B /MCAN0 /PSR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as PSR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (NO_ERROR)LEC0 (SYNCHRONIZING)ACT0 (EP)EP 0 (EW)EW 0 (BO)BO 0DLEC0 (RESI)RESI 0 (RBRS)RBRS 0 (RFDF)RFDF 0 (PXE)PXE 0TDCV

ACT=SYNCHRONIZING, LEC=NO_ERROR

Description

Protocol Status Register

Fields

LEC

Last Error Code (set to 111 on read)

0 (NO_ERROR): No error occurred since LEC has been reset by successful reception or transmission.

1 (STUFF_ERROR): More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed.

2 (FORM_ERROR): A fixed format part of a received frame has the wrong format.

3 (ACK_ERROR): The message transmitted by the MCAN was not acknowledged by another node.

4 (BIT1_ERROR): During transmission of a message (with the exception of the arbitration field), the device tried to send a recessive level (bit of logical value ‘1’), but the monitored bus value was dominant.

5 (BIT0_ERROR): During transmission of a message (or acknowledge bit, or active error flag, or overload flag), the device tried to send a dominant level (data or identifier bit logical value ‘0’), but the monitored bus value was recessive. During Bus_Off recovery, this status is set each time a sequence of 11 recessive bits has been monitored. This enables the processor to monitor the proceeding of the Bus_Off recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed).

6 (CRC_ERROR): The CRC check sum of a received message was incorrect. The CRC of an incoming message does not match the CRC calculated from the received data.

7 (NO_CHANGE): Any read access to the Protocol Status Register re-initializes the LEC to ‘7’. When the LEC shows value ‘7’, no CAN bus event was detected since the last processor read access to the Protocol Status Register.

ACT

Activity

0 (SYNCHRONIZING): Node is synchronizing on CAN communication

1 (IDLE): Node is neither receiver nor transmitter

2 (RECEIVER): Node is operating as receiver

3 (TRANSMITTER): Node is operating as transmitter

EP

Error Passive

EW

Warning Status

BO

Bus_Off Status

DLEC

Data Phase Last Error Code (set to 111 on read)

RESI

ESI Flag of Last Received CAN FD Message (cleared on read)

RBRS

BRS Flag of Last Received CAN FD Message (cleared on read)

RFDF

Received a CAN FD Message (cleared on read)

PXE

Protocol Exception Event (cleared on read)

TDCV

Transmitter Delay Compensation Value

Links

()